package cn.imvc.app.models;

import java.util.List;

import org.springframework.data.domain.Page;

import cn.imvc.app.domains.AppResult;
import cn.imvc.app.entities.Member;
import cn.imvc.app.entities.PointsToMoney;
import cn.imvc.app.entities.Withdrawals;
import cn.imvc.data.domain.ViewRequest;

public interface WithdrawalsModel {
	Page<Withdrawals> find(ViewRequest viewRequest);

	Withdrawals get(int id);

	Withdrawals save(Withdrawals entity);

	Withdrawals update(Withdrawals entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	void saveWithdrawalsOrder(Integer money,Member member,Integer bankcardId);
	
	List<PointsToMoney> findPointsToMoney(int level);
	
	AppResult savePToMOrder(Integer points,Member member,Integer listId);
	
}
